How can I sort a nested list in Python when it contains empty lists

welcome to shbcf.ru